package com.css.fxfzysx.modules.vaolEngineering.constants;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum BusinessObjectEnum {

    GS("供水设施","GS"),
    GQ("燃气-储气罐","GQ"),
    QL("桥梁","QL"),
    DL("道路","DL"),
    BDZ("变电站","BDZ"),
    GDSB("供电设备","GDSB"),
    TXSB("通信设备","TXSB"),
    DXGW("地下管网","DXGW");

    private String name;
    private String abbreviation;

    public static String getByName(String name){
        for (BusinessObjectEnum value : BusinessObjectEnum.values()) {
            if(value.name.equals(name)){
                    return value.abbreviation;
            }
        }
        return null;
    }
}
